const http = require('http');
const queryString = require('querystring')


let server = http.createServer((req, res) => {
  let str = ''
  req.on('data', data => {
    str += data
  });
  req.on('end', () => {
    let postObj = queryString.parse(str)
    console.log(str, postObj);
  })
  // res.write('123')
  res.end()

})

server.listen(5554)